package com.czh.api.impl;

import com.czh.api.BlogService;
import com.czh.entity.Blog;

/**
 * @author chenzhihua
 * @desc 博客实现类
 * @date 2024/1/9
 * @Version V1.1.0
 */
public class BlogServiceImpl implements BlogService {
    @Override
    public Blog getBlogById(Integer id) {
        Blog blog = Blog.builder().id(id).title("我的博客").userId(22).build();
        System.out.println("客户端查询了"+id+"的博客");
        return blog;
    }
}
